package com.gyl.controller;

import com.gyl.domain.PageListRes;
import com.gyl.domain.QueryVo;
import com.gyl.service.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PlaceController {
    @Autowired
    private PlaceService placeService;

    @RequestMapping("/place")
    public String place(){
        return "place";
    }

    @RequestMapping("/placeList")
    @ResponseBody
    public PageListRes getAllPlace(QueryVo vo){
        return placeService.getAllPlace(vo);
    }
}
